﻿using System;
using System.Drawing;
using System.Collections;
using System.ComponentModel;
using DevExpress.XtraReports.UI;

namespace LightSwitchApplication.Reports
{
    public partial class SingleStudentAllSchoolReports : DevExpress.XtraReports.UI.LightSwitchReport
    {
        public SingleStudentAllSchoolReports()
        {
            InitializeComponent();
        }

        private void xrSubreport1_BeforePrint(object sender, System.Drawing.Printing.PrintEventArgs e)
        {
            ((SingleStudentAllSchoolReportsSR)((XRSubreport)sender).ReportSource).studentId1.Value = this.studentId2.Value;
            ((SingleStudentAllSchoolReportsSR)((XRSubreport)sender).ReportSource).fromDate1.Value = this.fromDate2.Value;
        }
    }
}
